<template>
  <div>
    <el-collapse value="common">
      <el-collapse-item title="公共配置" name="common">
        <el-form :model="widget.UI.data" label-width="80px" size="mini" class="pad-lft-rgt-10">
          <el-row :gutter="10">
            <el-col :span="24">
              <el-form-item label="滚动方向">
                <el-select v-model="widget.UI.data.scrollDirection" placeholder="请选择滚动方向" class="width-100">
                  <el-option label="X轴" value='horizontal'></el-option>
                  <el-option label="Y轴" value='vertical'></el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </el-collapse-item>
    </el-collapse>
  </div>
</template>

<script>
  import {WidgetInput} from "@/modules/IDE/widget/atom/widgetInput";

  export default {
    name: 'ScrollContainerSpec',
    props: {
      widget: {
        type: WidgetInput,
        default: () => {
          return {};
        }
      }
    },
    computed: {
      state() {
        return this.widget.getCurrentState();
      }
    }
  };
</script>

<style scoped>
</style>
